﻿@using zichan.Common
@model zichan.Entity.Asset
<style>
    .control-label {
        text-align: right;
    }
</style>


<div class="col-md-6">
    <h3 class="form-section">  基本信息</h3>
    <div class="row">
        <div class="form-group">
            <label class="control-label col-md-3">资产分类:</label>
            <div class="col-md-9">
                @Model.AssetClassName
            </div>
        </div>
    </div>
    <div class="row">
        <div class="form-group">
            <label class="control-label col-md-3">资产状态:</label>
            <div class="col-md-9">
                @{
                    if (Model.Status == (int)AsseteStatu.Repertory)
                    {
                        <span class='label label-sm label-warning'>库存</span>
                    }
                    if (Model.Status == (int)AsseteStatu.InUse)
                    {
                        <span class='label label-sm label-warning'>使用中</span>
                    }
                    if (Model.Status == (int)AsseteStatu.Scrap)
                    {

                        <span class='label label-sm label-warning'>报废</span>
                    }
                }
            </div>
        </div>
    </div>

    <!--/span-->
    <div class="row">
        <div class="form-group">
            <label class="control-label col-md-3">所属公司:</label>
            <div class="col-md-9">
                @Model.CompanyName
            </div>
        </div>
    </div>
    <div class="row">
        <div class="form-group">
            <label class="control-label col-md-3">资产名称:</label>
            <div class="col-md-9">
                @Model.Name
            </div>
        </div>
    </div>
    <div class="row">
        <div class="form-group">
            <label class="control-label col-md-3">资产编号:</label>
            <div class="col-md-9">
                @Model.Code
            </div>
        </div>
    </div>
    <!--/span-->
    <!--/row-->
    <div class="row">
        <div class="form-group">
            <label class="control-label col-md-3">采购人:</label>
            <div class="col-md-9">
                @Model.BuyerName
            </div>
        </div>
    </div>
    <!--/span-->
    <div class="row">
        <div class="form-group">
            <label class="control-label col-md-3">采购时间:</label>
            <div class="col-md-9">
                @Model.BuyTime.ToShortDateString()
            </div>
        </div>
    </div>
    <!--/span-->
    <!--/row-->
    <div class="row">
        <div class="form-group">
            <label class="control-label col-md-3">资产所在地:</label>
            <div class="col-md-9">
                @Model.CalculatedGround
            </div>
        </div>
    </div>
    <div class="row">
        <div class="form-group">
            <label class="control-label col-md-3">接收人:</label>
            <div class="col-md-9">
                @Model.RecipientName
            </div>
        </div>
    </div>
    <div class="row">
        <div class="form-group">
            <label class="control-label col-md-3">供应商:</label>
            <div class="col-md-9">
                @Model.Supplier
            </div>
        </div>
    </div>
    <div class="row">
        <div class="form-group">
            <label class="control-label col-md-3">备注:</label>
            <div class="col-md-9">
                @Model.Remark
            </div>
        </div>
    </div>
</div>



